<template>
  <div id="app">
    <Layout>
      <Sider width="280" class="left-menu">
        <div class="logo">
          <span>Admin 后台管理</span>
        </div>
        <LeftSider></LeftSider>
      </Sider>
      <Layout>
        <Header>Header</Header>
        <Content style="background-color: rgb(245,247,249)">
          <div class="main">
            <router-view/>
          </div>
        </Content>
      </Layout>
    </Layout>
  </div>
</template>
<script>
import LeftSider from './components/LeftSider'

export default {
  name: 'App',
  components: {
    LeftSider
  },
  data() {
    return {
    }
  }
}
</script>

<style scoped>
.left-menu {
  height: 100vh;
}

.logo {
  width: 100%;
  height: 64px;
  line-height: 64px;
  font-size: 24px;
  text-align: center;
  color: #fff;
}
.main{
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  margin: 20px;
  background-color: #ffffff;
}
</style>
